<div>
	<form method="post" id="form_${action_id}" name="form_${action_id}" enctype="multipart/form-data">
	<input type="hidden" name="entity.id" value="${entity.id?default('')}" />
	<input id="entity.type" name="entity.type.id" value="${entity.type.id?default('')}" type="hidden" style="width:300px;" class="easyui-validatebox"  />
    <table class="form-table" cellpadding=3>
    	<tr>
            <td>${action.getDatagridTitle('value')}:</td>
            <#if entity.type.type==1>
				<input id="entity.value" name="entity.value" value="${entity.value?default('')}" style="width:300px;"  type="hidden"></input>
				<td><input id="value_name_${action_id}" value="${entity.dto.value?default('')}" onClick="selectArticle_${action_id}()" readonly="readonly" style="width:300px;" class="easyui-validatebox"  ></input></td>
            <#elseif entity.type.type==2>
            	<td>
            		<input type="hidden" name="entity.value" value="${entity.value?default('')}" id="entity_icon_value_${action_id}" />
					<input type="file"  name="entity.value" id="entity_icon_${action_id}" onchange="$('#entity_icon_${action_id}_filename').empty();$('#entity_icon_${action_id}_filename').text(this.value);" style="display: none" />
					<a href="javascript:;;" id="entity_icon_${action_id}_btn" onclick="$('#entity_icon_${action_id}').click();" class="easyui-linkbutton" data-options="iconCls:'icon-add'">选择文件</a>	
		     		<span id="entity_icon_${action_id}_filename"></span>
		     		<a href="javascript:;;" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-tip'" id="entity_icon_${action_id}_preview" >${action.getText('bg.message.preview')}</a>
		     		<script type="text/javascript">
		     		$(function(){
		     			$('#entity_icon_${action_id}_preview').preview({html:'<div style="border:#c0c0c0 1px solid;background-color: white;"><img src="${downUrl?default('')}${entity.value?default('')}?_v=${timeMillis}" /></div>'});
		     		});
		     		</script>
	        	</td>
			<#else>
				<input id="entity.value" name="entity.value" value="${entity.value?default('')}" style="width:300px;"  type="hidden"></input>
				<td><input id="value_name_${action_id}" value="${entity.dto.value?default('')}" onClick="selectProduct_${action_id}()" readonly="readonly" style="width:300px;" class="easyui-validatebox"  ></input></td>
            </#if>
        </tr>
        <#if entity.type.id!=5>
        <tr>
            <td>${action.getDatagridTitle('url')}:</td>
            <td><input id="entity.value" name="entity.url" value="${entity.url?default('')}" style="width:300px;" class="easyui-validatebox"  ></input></td>
        </tr>
        </#if>
        <tr>
            <td>${action.getDatagridTitle('order')}:</td>
            <td><input id="entity.order" name="entity.order" value="${entity.order}" class="easyui-numberspinner" style="width:120px;" data-options="precision:0,min:0,value:0"></td>
        </tr>
    </table>
	</form>
</div>
